package tempmethod;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 模板方法
 * @Date: Created in 2021/12/13 17:36
 */
public class Human1 extends AbstractClass {
    @Override
    protected void eat() {
        System.out.println("Human1 eat");
    }

    @Override
    protected void sleep() {
        System.out.println("Human1 sleep");
    }

    @Override
    protected void walk() {
        System.out.println("Human1 walk");
    }

    /**
     * 是否响喇叭
     * 子类执行
     *
     * @return boolean
     */
    @Override
    protected boolean isAlarm() {
        return false;
    }
}
